package com.ysd.lis.controller.bac;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.bac.BacDescOption;
import com.ysd.lis.request.bac.BacDescOptionDto;
import com.ysd.lis.service.bac.BacDescOptionService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 细菌描述性结果选项 前端控制器
 * </p>
 *
 * @author whx
 * @since 2025-01-24
 */
@RestController
@RequestMapping("/api/bac/bac-desc-option")
public class BacDescOptionController extends BaseController {
    @Autowired
    BacDescOptionService bacDescOptionService;

    @ApiOperation("查询")
    @GetMapping("/findBacDescOptionList")
    public Result findBacDescOptionList(BacDescOption bacDescOption) {
        return bacDescOptionService.findBacDescOptionList(bacDescOption);
    }

    @ApiOperation("增加")
    @PostMapping("/addBacDescOption")
    public Result addBacDescOption(@RequestBody BacDescOption bacDescOption) {
        return bacDescOptionService.addBacDescOption(bacDescOption);
    }

    @ApiOperation("删除")
    @PostMapping("/deleteBacDescOption")
    public Result deleteBacDescOption(@RequestBody BacDescOption bacDescOption) {
        return bacDescOptionService.deleteBacDescOption(bacDescOption);
    }

    @ApiOperation("修改")
    @PostMapping("/updateBacDescOption")
    public Result updateBacDescOption(@RequestBody BacDescOption bacDescOption) {
        return bacDescOptionService.updateBacDescOption(bacDescOption);
    }

    @ApiOperation("批量修改")
    @PostMapping("/updateBatchBacDescOption")
    public Result updateBatchBacDescOption(@RequestBody BacDescOptionDto dto) {
        return bacDescOptionService.updateBatchBacDescOption(dto);
    }

}
